package com.zh.work.entity.branch;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@ApiModel("机构文档实体类")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("branch_help")
public class BranchHelpEntity extends Model<BranchHelpEntity> {

  private static final long serialVersionUID = 210521346705614912L;
  @ApiModelProperty(value = "主键", name = "id")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;
  @ApiModelProperty(value = "机构号", name = "branchNo")
  @TableField(value = "branchno")
  private String branchNo;
  @ApiModelProperty(value = "关键词", name = "keyVal")
  private String keyVal;
  @ApiModelProperty(value = "问题标题", name = "title")
  private String title;
  @ApiModelProperty(value = "内容描述", name = "content")
  private String content;
  @ApiModelProperty(value = "创建者", name = "loginName")
  private String loginName;
  @ApiModelProperty(value = "创建时间", name = "addTime")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date addTime;
  @ApiModelProperty(value = "问题类型", name = "type")
  private  Integer type;
  @ApiModelProperty(value = "逻辑删除1删除,0正常", name = "deleted")
  @TableLogic
  private Integer deleted;

}
